<% content_for :content do %>

	<div class="list_body">
		<% @articles.each do |article| %>
		<div class="list">
			<% if article.cover %>
				<a href="<%= article_path(article) %>">
					<%= image_tag article.cover.url(:small), alt: article.title %>
				</a>
			<% end %>
			<div class="l_c">
				<a href="<%= article_path(article) %>"><span><h2><%= article.title %></h2></span></a><br/>
			 	<p><%= article.description %></p>
			</div>
	 </div>
	 <% end if @articles %>
	 <%= paginate @articles %>
	</div>

<% end %>